package com.heeexy.example.service.impl;

import com.github.pagehelper.Page;
import com.heeexy.example.dao.CommentDao;
import com.heeexy.example.service.CommentService;
import yinwei.bo.common.entry.Comment;

import javax.annotation.Resource;
import java.util.List;

public class CommentServiceImpl implements CommentService {

    @Resource
    CommentDao commentDao;

    @Override
    public void deleteComment(Long id) {
        commentDao.deleteComment(id);
    }

    @Override
    public List<Comment> listCommentByBlogId(int blogId) {
        return commentDao.listCommentByBlogId(blogId);
    }

    @Override
    public Page<Comment> getCommentByPage(Long current, Long size) {
        return commentDao.getCommentByPage();
    }

    @Override
    public List<Comment> findCommentByNickname(String nickname) {
        return commentDao.findCommentByNickname();
    }
}
